home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
forlib1.arc
/
VIDEO.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-01-15
|
3KB
|
172 lines
DATA SEGMENT PUBLIC 'DATA'
TITLE__ DB 'TITLE: VIDEO CONTROL FOR MS FORTRAN'
COPY_R DB ' (C) John R. Petrocelli'
DB ' Schenectady,NY '
DB ' 01/13/86 '
ESC_SEQ_COL DB ' [ m$'
ESC_SEQ_CLS DB ' [2J$'
DATA ENDS
DGROUP GROUP DATA
CODE SEGMENT 'CODE'
ASSUME CS:CODE,DS:DGROUP,SS:DGROUP
PUBLIC VIDCOL
VIDCOL PROC FAR
PUSH BP
PUSH AX
PUSH BX
PUSH DX
MOV BP,SP
MOV ESC_SEQ_COL[0],1BH
LES BX,DWORD PTR[BP+12]
MOV BP,BX
MOV AH,[BP]
MOV AL,[BP+1]
MOV ESC_SEQ_COL[2],AH
MOV ESC_SEQ_COL[3],AL
LEA DX,ESC_SEQ_COL[0]
MOV AX,0900H
INT 21H
POP DX
POP BX
POP AX
POP BP
RET 4
VIDCOL ENDP
PUBLIC VIDCLR
VIDCLR PROC FAR
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV AX,0F00H
INT 10H
PUSH BX
MOV DL,AH
MOV DH,18H
MOV BH,07
XOR CX,CX
MOV AX,0600H
INT 10H
POP BX
MOV AX,0200H
XOR DX,DX
INT 10H
POP DX
POP CX
POP BX
POP AX
RET
VIDCLR ENDP
PUBLIC VIDCLZ
VIDCLZ PROC FAR
PUSH AX
PUSH DX
MOV ESC_SEQ_CLS[0],1BH
LEA DX,ESC_SEQ_CLS[0]
MOV AX,0900H
INT 21H
POP DX
POP AX
RET
VIDCLZ ENDP
PUBLIC VIDLCR
VIDLCR PROC FAR
PUSH BP
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV BP,SP
MOV AX,0F00H
INT 10H
MOV AX,0300H
INT 10H
LES BX,DWORD PTR[BP+18]
MOV [BX],DH
LES BX,DWORD PTR[BP+14]
MOV [BX],DL
POP DX
POP CX
POP BX
POP AX
POP BP
RET 8
VIDLCR ENDP
PUBLIC VIDMCR
VIDMCR PROC FAR
PUSH BP
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV BP,SP
LES BX,DWORD PTR[BP+18]
MOV DH,[BX]
LES BX,DWORD PTR[BP+14]
MOV DL,[BX]
MOV AX,0F00H
INT 10H
MOV AX,0200H
INT 10H
POP DX
POP CX
POP BX
POP AX
POP BP
RET 8
VIDMCR ENDP
PUBLIC VIDSCN
VIDSCN PROC FAR
PUSH BP
PUSH AX
PUSH BX
MOV BP,SP
LES BX,DWORD PTR[BP+10]
MOV AH,05
MOV AL,[BX]
INT 10H
POP BX
POP AX
POP BP
RET 4
VIDSCN ENDP
PUBLIC VIDMOD
VIDMOD PROC FAR
PUSH BP
PUSH AX
PUSH BX
MOV BP,SP
LES BX,DWORD PTR[BP+10]
MOV AH,00
MOV AL,[BX]
INT 10H
POP BX
POP AX
POP BP
RET 4
VIDMOD ENDP
PUBLIC VIDSTA
VIDSTA PROC FAR
PUSH BP
PUSH AX
PUSH BX
PUSH CX
MOV BP,SP
MOV AX,0F00H
INT 10H
XCHG BX,CX
LES BX,DWORD PTR[BP+16]
MOV WORD PTR[BX],0000
MOV [BX],AL
LES BX,DWORD PTR[BP+12]
MOV WORD PTR[BX],0000
MOV [BX],CH
POP CX
POP BX
POP AX
POP BP
RET 4
VIDSTA ENDP
CODE ENDS
END